package org.particlethink.auth;

import org.springframework.security.core.Authentication;
import org.springframework.security.web.authentication.AuthenticationConverter;

import javax.servlet.http.HttpServletRequest;

/**
 * 通过 request 获取身份
 *
 * 这个没有用，spring security 并没有将 {@link org.springframework.security.web.authentication.AuthenticationFilter} 加到过滤器链路中，最终使用的自定义 filter {@link TokenFilter} 处理请求token
 */
public class JwtAuthenticationConverter implements AuthenticationConverter {

	@Override
	public Authentication convert(HttpServletRequest request) {


        return new JWTAuthentication(null);
	}
}
